﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;

public partial class MyPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["UserName"].ToString()!=null ||  Request.QueryString["Password"].ToString()!=null)
        {
            #region 測試
            //Label lb = new Label();
            //lb.Text=Request.QueryString["ID"].ToString();
            //Page.Form.Controls.Add(lb);
            #endregion
            //Response.Write("<script>alert('"+Request.QueryString["UserName"].ToString()+"');</script>");
            lbl_UserName.Text = Request.QueryString["UserName"].ToString();
            
             #region 測試
            //DataSet ds = new DataSet();
            //ds=DataManager.RegisterManager.Instance.GetAllRegisterDataById(Request.QueryString["UserName"].ToString(), Request["Password"].ToString());
            //for (int i = 0; i <= ds.Tables[0].Rows.Count;i++ )
            //{
            //    for(int j=0;i<=ds.Tables[0].Columns.Count;j++)
            //    {
            //        Response.Write(ds.Tables[0].Rows[i][j].ToString());
            //    }
            //}

               #endregion


        }
    }
}